﻿@model App.MVCClient.Models.AddressDTO
@{
    ViewBag.Title = "Create";
}
<div class="commonPanel">
    @using (@Html.BeginForm("Create", "Address", FormMethod.Post, new { id = "CreateAddressForm" }))
    {
        @Html.LabelFor(m => m.AddressLine1)
        @Html.TextBoxFor(m => m.AddressLine1, new { placeholder = "Address Line 1", required = "required" })
        @Html.LabelFor(m => m.AddressLine2)
        @Html.TextBoxFor(m => m.AddressLine2, new { placeholder = "Address Line 2" })
        @Html.LabelFor(m => m.City)
        @Html.TextBoxFor(m => m.City, new { placeholder = "City", required = "required" })
        @Html.LabelFor(m => m.CountryCode)
        @Html.TextBoxFor(m => m.CountryCode, new { placeholder = "Country/Region", required = "required" })
        @Html.LabelFor(m => m.StateProvinceCode)
        @Html.TextBoxFor(m => m.StateProvinceCode, new { placeholder = "State/Provice", required = "required" })
        @Html.LabelFor(m => m.PostalCode)
        @Html.TextBoxFor(m => m.PostalCode, new { placeholder = "Postal Code", required = "required", maxLength = "8", size = "8" })
    }
</div>
<div class="commonPanel actionPanel">
    <input type="submit" form="CreateAddressForm" value="Create" />
</div>
